import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import store from './store'
import filters from './filters'
import './uni.promisify.adaptor'
// main.js
import uView from '@/uni_modules/uview-ui'
import tabBar from "@/components/tabBar/index.vue"
// 引入request.js
import { request } from './utils/request' 
// 将request挂载到Vue原型上 
Vue.prototype.$http  = request 
Vue.component('tabBar', tabBar);
Vue.use(uView)
Vue.config.productionTip = false
App.mpType = 'app'
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
})
const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif